from UIAutoTest.unittest_crud.ThreeCJG.ElementHandle import ElementHandle
import time


# 业务层
class Service(ElementHandle):
    def __init__(self):
        ElementHandle.__init__(self)

    # 编写此方法封装所有操作，给外界提供add_haha()接口可直接调用
    def add_haha(self, title, url, content):
        self.get_a()
        time.sleep(1)
        self.get_title(title)
        time.sleep(1)
        self.get_jump_url(url)
        time.sleep(1)
        self.get_div4()
        time.sleep(1)
        self.get_div5()
        time.sleep(1)
        self.get_content(content)

# if __name__ == '__main__':
#     Service().add_haha('不来男人跟', 'wwww', 'sssss')
